<!DOCTYPE html>
<html>
<head>
   <meta charset="utf-8">
   <title>record</title>
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <link rel="stylesheet" type="text/css" href="{{url_for('static',filename='bootstrap.min.css')}}">

   <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
   <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>

<table class="table table-bordered">
   <h2 class="text-center">结算单（姓名）</h2>

   <button type="button" class="btn btn-info" style="position:absolute;top:20px;right:70px"><a href={{url_for('logout')}}>回到首页</a></button>
   <thead>
   
      <tr>
      
         <th>姓名</th>
         <th>平仓盈亏</th>
         <th>成交量</th>
         <th>最大多头持仓</th>
         <th>最大空头持仓</th>
         <th>最大盈亏</th>
         <th>最小盈亏</th>
         <th>交易天数</th>
         <th>入职日期</th>
         <th>截止日期</th>
         <th>交易点</th>
         <th>合约</th>
         <th>模拟组盈亏</th>
         <th>模拟组成交量</th>
         <th>模拟组交易天数</th>
         <th>实盘组盈亏</th>
         <th>实盘组成交量</th>
         <th>实盘组交易天数</th>
    
      </tr>
      
   </thead>
   
   
   <tbody>
      <tr>
      {% for entry in entries%}
         <td>{{ entry.date|safe }}</td>
         <td>{{entry.pingprofit}}</td>
         <td>{{entry.volume}}</td>
         <td>{{entry.maxduo}}</td>
         <td>{{entry.maxkong}}</td>
         <td>{{entry.maxprofit}}</td>
         <td>{{entry.minprofit}}</td>
         <td>{{entry.count}}</td>
         <td>{{entry.start}}</td>
         <td>{{entry.end}}</td>
         <td>{{entry.tradeplace}}</td>
         <td>{{entry.instrument}}</td>
         <td>{{entry.simulatedprofit}}</td>
         <td>{{entry.simulatedvolume}}</td>
         <td>{{entry.simulateddaycount}}</td>
         <td>{{entry.actualprofit}}</td>
         <td>{{entry.actualvolume}}</td>
         <td>{{entry.actualdaycount}}</td>
         
      </tr>
{%endfor%}
   </tbody>

</table >
<table class="table table-bordered">
   <thead>
   
      <tr>
      
         <th>日期</th>
         <th>平仓盈亏</th>
         <th>成交量</th>
    
      </tr>
      
   </thead>
   
   
   <tbody>
   <td>合计</td>
   <td>{{dictf.result}}</td>
   <td>{{dictf.volume}}</td>
      <tr>
      {% for newentry in newentries%}
         <td>{{ newentry.timedate.decode("gbk")|safe }}</td>
         <td>{{newentry.result}}</td>
         <td>{{newentry.volume}}</td>

      </tr>
{%endfor%}
   </tbody>
</table>
</body>
</html>